alias py_yuan_conf="python3 -m pip config set global.index-url https://mirrors.nju.edu.cn/pypi/web/simple"
alias py_yuan_list="python3 -m pip config list"
alias npm_yuan_conf="npm config set registry http://registry.npmmirror.com"
alias npm_yuan_list="npm config list"
alias py_rent='python3 ~/git_repo/utils/calculate_rent.py'

if test (uname -s) = Darwin
    alias no_show_input="sudo defaults write /Library/Preferences/FeatureFlags/Domain/UIKit.plist redesigned_text_cursor -dict-add Enabled -bool NO"
    alias no_win_animation="defaults write -g NSAutomaticWindowAnimationsEnabled -bool FALSE"
end

if command -q nvim
    alias vim="nvim"
    set -gx EDITOR (command -v nvim)
end
if command -q lazygit
    alias lg="lazygit"
end
if command -q joshuto
    alias js="joshuto"
end
